package com.xianzw.mnfun.web.controller.front;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xianzw.mnfun.model.domain.Barrage;
import com.xianzw.mnfun.web.controller.core.BaseController;

import cn.hutool.captcha.CaptchaUtil;

/**
 * 弹幕吐槽
 * @author xianzw
 *
 * 2018年9月18日下午11:37:21
 */
@Controller
@RequestMapping("/barrage")
public class FrontBarrageController extends BaseController{

	
	/**
	 * 添加弹幕
	 * @param barrage
	 * @return
	 */
	@PostMapping("/addBarrage")
	@ResponseBody
	public Barrage addBarrage(Barrage barrage){
		return barrage;
	}
	
	@RequestMapping("/images/captcha")
    public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
    }
	
}
